 /**
  * Pin is a superclass that has OutputPin and InputPin as subclass.
  * Pin as only one field, which is a value.
  * 
  * @author Simone D'Avico (simone.davico@usi.ch); Giuseppe Mendola (giuseppe.mendola@usi.ch);Gregory Banfi (gregory.banfi@usi.ch);
  * @version 18.04.2011
 */
package ch.usi.inf.pf2.pins;

import java.io.Serializable;

import ch.usi.inf.pf2.Value;

public class Pin implements Serializable {
	
	private Value value;
	
	/**
	 * Constructor of Pin.
	 * It assigns a value to the value field of the pin object.
	 * @param value A value object.
	 */
	public Pin(final Value value) {
		this.value = value;
	}

	/**
	 * This method returns the value of the pin.
	 * @return value The value of the pin.
	 */
	public Value getValue() {
		return value;
	}
	
	/**
	 * This method set the value of the pin to a given value.
	 * @param value A value object.
	 */
	public void setValue(final Value value) {
		this.value = value;
	}
}
